package com.tmxk.springmvc.constants;

/**
 * 枚举类:标识响应数据状态码
 */
public enum Result {
    SUCCESS(0,"成功"),FAILED(1,"失败");

    private Integer code;
    private String value;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    //私有构造
    Result(Integer code, String value) {
        this.code = code;
        this.value = value;
    }


}
